import javax.swing.tree.TreeNode;
import java.util.List;

public class Test {

    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        binaryTree.preOrder(root);
        System.out.println("         ");

        List<List<Character>> ret = binaryTree.levelOlder2(root);
        System.out.println(ret);

        binaryTree.getLeafNodeCount1(root);
        int c = binaryTree.leafSize;
        System.out.println(c);

        int rett = binaryTree.size2(root);
        System.out.println(rett);

        System.out.println("叶子节点的个数：" + binaryTree.getHeight2(root));

    }

}
